#ifndef DEVNODE_H
#define DEVNODE_H

#include <QObject>
#include "XDPER.H"

#define NST_EMPTY				(0)		/* empty */
#define NST_CNNED				(1)		/* connected */
#define	NST_OFFLN				(2)		/* offline */
#define NST_DOWNLOAD			(3)		/* downloading */

class devNode
{
public:
    devNode();

    int			state;					/* node state */
    QString		devName;                /* device name */
    DPHANDLE	handle;					/* node connect handle if connected */
    DEVINFO		devInfo;				/* node devinfo if connected */
private:

//    HTREEITEM	hroot;					/* tree item root */
//    CWinThread	*m_pthread;				/* thread pointer */

//    /* devinfo datamap */
//    datamap		devi_map;

//    /* data maps with no users */
//    datamap		ecg_map;				/* ecg mapinfo */
//    datamap		oxi_map;				/* oxi mapinfo */
//    datamap		tmp_map;				/* tmp mapinfo */
//    datamap		slm_map;				/* sleepm mapinfo */

//    /* data maps with users */
//    CCheckme	chkme;
//    CPedo		pedo;
//    CSpotchk	spotchk;

//    void		*m_param;				/* extral param */

//    int			m_cur_sorttype;			/* current sort type */
//    int			m_cur_asc;				/* asc order bool value */
};

#endif // DEVNODE_H
